package tests;

import java.util.Scanner;

public class teat24 {
    //解读密码 42
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            String s = sc.nextLine();
            char[] arr = s.toCharArray();
            String ret = "";
            for(int i = 0;i < s.length();i++){
                if(arr[i] >= '0' && arr[i] <= '9'){
                    ret+=arr[i];
                }
            }
            System.out.println(ret);
        }

    }
}
